package com.eshipenet.shipnet.equipmentextbuilder

sealed trait EquipmentWithModelIdAction {
  val id: String
  val modelId: String
}

case class EquipmentWithModelIdInsert(after: EquipmentWithLink) extends EquipmentWithModelIdAction {
  override val id: String      = after.equipment.id
  override val modelId: String = after.link.mid
}

case class EquipmentWithModelIdDelete(before: EquipmentWithLink) extends EquipmentWithModelIdAction {
  override val id: String      = before.equipment.id
  override val modelId: String = before.link.mid
}
